package com.developmentReformProject.dao;

import com.developmentReformProject.dto.EnterpriseQueryDto;
import com.developmentReformProject.dto.FiveQueryDto;
import com.developmentReformProject.dto.ThreeQueryDto;
import com.developmentReformProject.entity.Apply;
import com.developmentReformProject.entity.Enterprise;
import com.developmentReformProject.entity.FiveYearProject;
import com.developmentReformProject.entity.ThreeYearProject;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface FiveProjectDao {
    int countSelective(FiveYearProject fiveYearProject);

    /**
     * 动态查询
     * @param
     * @return
     * @throws Exception
     */
    public List<FiveYearProject> selectSelective(FiveQueryDto fiveQueryDto) throws Exception;

    void addFive(FiveYearProject fiveYearProject);
    void updateFive(FiveYearProject fiveYearProject);
    void  deleteProject(Integer fiveProjectNo);

    public void cleanFive(int fiveProjectNo);
    public List<FiveYearProject> listDelete(FiveQueryDto fiveQueryDto);
    int countClean(FiveQueryDto fiveQueryDto);
    FiveYearProject queryByNo(int fiveProjectNo);
    Double countSum();
    List<Map<Integer,Integer>> countType();
    int countOne();
    int countTwo();
    int countThree();
    int countFour();
    int countFive();
    int countSix();
}
